#!/usr/bin/env bash
yum install epel-release
yum install mosquitto
systemctl start mosquitto

firewall-cmd --zone=public --add-port=1883/tcp --permanent
firewall-cmd --reload

#test:
#mosquitto_sub -t topic1
#mosquitto_pub -t topic1 -m "HelloWorld"
